<?
require_once('ConverterBase.php');

class CheckboxConverter extends ConverterBase {
	protected function toDatatype($string) {}
	protected function toString($data) {}

	public function getAsDatatype($string) {
		if (is_null($string)) return '';
		return (string)$string;
	}
	public function getAsString($data) {
		if ($data==='') return (string)$this->getDefault();
		return (string)$data;
	}
}